package cn.yunhe.entity;

import java.io.Serializable;

public class Topic implements Serializable {
    private  int pId;
    private  String title;
    private  String context;
    private  String pTime;
    private  User user;
    private  Blank blank;


    public Topic(int pId, String title, String context, String pTime, User user, Blank blank) {
        this.pId = pId;
        this.title = title;
        this.context = context;
        this.pTime = pTime;
        this.user = user;
        this.blank = blank;
    }

    public Topic() {
    }


    public int getpId() {
		return pId;
	}

	public void setpId(int pId) {
		this.pId = pId;
	}

	public Topic(String title, String context, String pTime, User user, Blank blank) {
        this.title = title;
        this.context = context;
        this.pTime = pTime;
        this.user = user;
        this.blank = blank;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getpTime() {
        return pTime;
    }

    public void setpTime(String pTime) {
        this.pTime = pTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Blank getBlank() {
        return blank;
    }

    public void setBlank(Blank blank) {
        this.blank = blank;
    }
}
